package cn.tqfeiyang.springplus.warehouse.request;

import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.tqfeiyang.springplus.framework.validation.*;
import jakarta.validation.constraints.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 公司请求类
 *
 * @author tqfeiyang
 * @since 2024-08-01
 */
@Data
public class CompanyDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "公司名称不能为空", groups = WhenCreate.class)
    @Size(max = 50, message = "公司名称长度不能超过50字符")
    @Schema(description = "公司名称")
    private String name;

    @NotBlank(message = "所在城市不能为空", groups = WhenCreate.class)
    @Size(max = 50, message = "所在城市长度不能超过50字符")
    @Schema(description = "所在城市")
    private String city;

    @NotBlank(message = "详细地址不能为空", groups = WhenCreate.class)
    @Size(max = 100, message = "详细地址长度不能超过100字符")
    @Schema(description = "详细地址")
    private String address;

    @NotBlank(message = "负责人不能为空", groups = WhenCreate.class)
    @Size(max = 50, message = "负责人长度不能超过50字符")
    @Schema(description = "负责人")
    private String manager;

    @NotBlank(message = "电话不能为空", groups = WhenCreate.class)
    @Size(max = 50, message = "电话长度不能超过50字符")
    @Schema(description = "电话")
    private String phone;

    @NotBlank(message = "邮件不能为空", groups = WhenCreate.class)
    @Size(max = 50, message = "邮件长度不能超过50字符")
    @Schema(description = "邮件")
    private String email;
}